package cate.game.role.pay.trademall.masterprivilege.msg;

import cate.game.GameBody;
import cate.game.client.ClientContext;
import cate.game.client.msg.ClientMsg;
import cate.game.client.msg.MsgConfig;
import cate.game.client.msg.MsgInput;
import cate.game.client.msg.id.MsgIdBPrivilege;
import easy.java.dev.note.NoteField;

@ClientMsg(title = "使用道具增加某项特权购买次数 の 请求")
public class AddBuyTimesReq implements MsgInput {
    @NoteField("特权ID")
    public int tid;

    @Override
    public void execute(GameBody game, ClientContext cc) {
        cc.getRole().getPay().tradeMall.privilegeMall.addBuyTimes(tid);
    }

    @Override
    public MsgConfig conf() {
        return MsgIdBPrivilege.ADD_BUY_TIMES_REQ;
    }
}
